import json
txt = open("D:\\json.txt","r")
ls = json.load(txt)
print(ls)

class UserInfo:
    name = ''
    email= ''
    qq = ''
    password = ''
    def __init__(self,n,e,q,p):
        self.name = n
        self.email = e
        self.qq = q
        self.password = p

    def __str__(self):
        message = print("姓名：{}\n邮箱：{}\nQQ:{}\n".format(self.name,self.email,self.qq))
        return message

users = []
for i in ls:
    user = UserInfo(i["name"],i["email"],i["qq"],i["password"])
    users.append(user)

for user in users:
    print(user)